package com.qhg.saas_server.utils;

import java.util.Date;

public class TimeDifferenceUtil {
    public static Integer DateDifference(Date dateMax,Date dateMin){
        long timeMax = dateMax.getTime();
        long timeMin = dateMin.getTime();
        long diff = timeMax - timeMin;
        Integer diffMinutes = Math.toIntExact(diff / (60 * 1000));
        return diffMinutes;
    }
}
